// 04jyhs/accountAdmin/bankCard/bankCard.js
var co = require('../../../resource/js/common.js')
var app = getApp()
var _this
Page({
   data: {
      bankList: ''
   },
   onLoad: function (options) {
      _this = this;
      this.getBankList()
   },
   onShow: function () {
      this.getBankList()
   },
   getBankList: function () {
      var url = 'bankcard/ba/getList';
      var Type = app.Data.userInfo.User_Type
      if (Type == "jyhs_admin"){
         co.getShareApi(url, {
            User_ID: 3950
         }, function (res) {
            if (res.code == 0) {
               _this.setData({
                  bankList: res.data
               })
            }
         })
      }
   },

   //跳转到添加银行卡
   addBankCard: function () {
      wx.navigateTo({
         url: '/03admin/09getMoney/03bankCard/01addBankCard/addBankCard?scene=Biz_ID.' + app.Data.shopInfo.Biz_ID + '.User_ID.' + app.Data.userInfo.User_ID + '.From_Page.bankCard'
      })
   }
})